package com.wx_shop.admin.domain.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperProOrderitem implements Serializable {
    private Integer id;

    /**
     * 订单id
     */
    private Integer orderid;

    /**
     * 商品id
     */
    private Integer proid;

    /**
     * 商品图片
     */
    private String picture;

    /**
     * 商品名称
     */
    private String title;

    /**
     * 商品图片
     */
    private String price;

    /**
     * 购买数量
     */
    private Integer num;

    /**
     * 商品属性ID
     */
    private String params;

    /**
     * 属性值内容文字
     */
    private String paramsTxt;

    private Date crreateTime;

    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 订单id
     */
    public Integer getOrderid() {
        return orderid;
    }

    /**
     * 订单id
     */
    public void setOrderid(Integer orderid) {
        this.orderid = orderid;
    }

    /**
     * 商品id
     */
    public Integer getProid() {
        return proid;
    }

    /**
     * 商品id
     */
    public void setProid(Integer proid) {
        this.proid = proid;
    }

    /**
     * 商品图片
     */
    public String getPicture() {
        return picture;
    }

    /**
     * 商品图片
     */
    public void setPicture(String picture) {
        this.picture = picture;
    }

    /**
     * 商品名称
     */
    public String getTitle() {
        return title;
    }

    /**
     * 商品名称
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 商品图片
     */
    public String getPrice() {
        return price;
    }

    /**
     * 商品图片
     */
    public void setPrice(String price) {
        this.price = price;
    }

    /**
     * 购买数量
     */
    public Integer getNum() {
        return num;
    }

    /**
     * 购买数量
     */
    public void setNum(Integer num) {
        this.num = num;
    }

    /**
     * 商品属性ID
     */
    public String getParams() {
        return params;
    }

    /**
     * 商品属性ID
     */
    public void setParams(String params) {
        this.params = params;
    }

    /**
     * 属性值内容文字
     */
    public String getParamsTxt() {
        return paramsTxt;
    }

    /**
     * 属性值内容文字
     */
    public void setParamsTxt(String paramsTxt) {
        this.paramsTxt = paramsTxt;
    }

    public Date getCrreateTime() {
        return crreateTime;
    }

    public void setCrreateTime(Date crreateTime) {
        this.crreateTime = crreateTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderid=").append(orderid);
        sb.append(", proid=").append(proid);
        sb.append(", picture=").append(picture);
        sb.append(", title=").append(title);
        sb.append(", price=").append(price);
        sb.append(", num=").append(num);
        sb.append(", params=").append(params);
        sb.append(", paramsTxt=").append(paramsTxt);
        sb.append(", crreateTime=").append(crreateTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperProOrderitem other = (SuperProOrderitem) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOrderid() == null ? other.getOrderid() == null : this.getOrderid().equals(other.getOrderid()))
            && (this.getProid() == null ? other.getProid() == null : this.getProid().equals(other.getProid()))
            && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(other.getPicture()))
            && (this.getTitle() == null ? other.getTitle() == null : this.getTitle().equals(other.getTitle()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getNum() == null ? other.getNum() == null : this.getNum().equals(other.getNum()))
            && (this.getParams() == null ? other.getParams() == null : this.getParams().equals(other.getParams()))
            && (this.getParamsTxt() == null ? other.getParamsTxt() == null : this.getParamsTxt().equals(other.getParamsTxt()))
            && (this.getCrreateTime() == null ? other.getCrreateTime() == null : this.getCrreateTime().equals(other.getCrreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOrderid() == null) ? 0 : getOrderid().hashCode());
        result = prime * result + ((getProid() == null) ? 0 : getProid().hashCode());
        result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
        result = prime * result + ((getTitle() == null) ? 0 : getTitle().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getNum() == null) ? 0 : getNum().hashCode());
        result = prime * result + ((getParams() == null) ? 0 : getParams().hashCode());
        result = prime * result + ((getParamsTxt() == null) ? 0 : getParamsTxt().hashCode());
        result = prime * result + ((getCrreateTime() == null) ? 0 : getCrreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }
}